package ooday01;

public class Studentest {
    public static void main(String[] args) {
        //访问一个学生对象
        Student zg =new Student();
        //使用
        zg.name ="张光";
        zg.age =26;
        zg.className="jsd2311";
        zg.stuId="001";
        //使用"方法"
        zg.study();
        zg.sayHi();
        zg.playWith("张光");

        Student ll=new Student();
        ll.name ="李林";
        ll.age =26;
        ll.className="jsd2311";
        ll.stuId="002";
        ll.study();
        ll.sayHi();
        ll.playWith("李林");

        Student ls=new Student();
        ls.study();
        ls.sayHi();
        ls.playWith("李三");

    }
}
